<template>
  <nav>
    <router-link to="/labels" class="item" active-class="selected">
      <Icon name="labels" />标签
    </router-link>
    <router-link to="/money" class="item" active-class="selected">
      <Icon name="wallet" />记账
    </router-link>
    <router-link to="/statistics" class="item" active-class="selected"  >
      <Icon name="charts" />统计
    </router-link>
  </nav>
</template>

<script lang="ts">

export default {
  name: "Nav"
};
</script>

<style lang="scss" scoped>
  nav{
    display: flex;
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.25);
    font-size: 16px;
    flex-direction: row;
    
        > .item {
            padding: 6px 0;
            width: 33.3333%;
            display: flex;
            justify-content: center;
            align-items: center;
            flex-direction: column;
            .icon{
                width: 32px;
                height: 32px;
            }
        }
        .item.selected{
          color: #003399;
        }
  }
</style>